import request from '@/utils/request'


export function getRelatedList(id) {
  return request({
    url: '/system/related/standardId/' + id,
    method: 'get'
  })
}

// 查询薪酬扣款关系管理列表
export function listRelated(query) {
  return request({
    url: '/system/related/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬扣款关系管理详细
export function getRelated(id) {
  return request({
    url: '/system/related/' + id,
    method: 'get'
  })
}

// 新增薪酬扣款关系管理
export function addRelated(data) {
  return request({
    url: '/system/related',
    method: 'post',
    data: data
  })
}

// 修改薪酬扣款关系管理
export function updateRelated(data) {
  return request({
    url: '/system/related',
    method: 'put',
    data: data
  })
}

// 删除薪酬扣款关系管理
export function delRelated(id) {
  return request({
    url: '/system/related/' + id,
    method: 'delete'
  })
}
